package com.think.admin.oauth.permission;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 权限服务
 * </p>
 *
 * @author: xwj
 * @data: 2019-05-13
 */
public interface PermissionService {
    /**
     * 权限判断
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
